﻿<html>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@include file="/quick/include/common.jsp"%>
<%@include file="/quick/include/globalScope.jsp"%>
  <head>
    <title><c:out value="${model.title}"/></title>
<style>
<!--
 p.MsoNormal
	{mso-style-parent:"";
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:"Times New Roman";
	margin-left:0cm; margin-right:0cm; margin-top:0cm}
-->
</style>    
  </head>
  <br>

<c:choose>

<c:when test="${model.entrySwitch=='Y' and model.arrears!='Y' }">
  <div id='note_div' style="display:<c:out value='${model.note_div_display }'/>">
		<p class="MsoNormal" align="center" style="text-align: center; line-height: 22.0pt">
		<span style="font-size: 18.0pt; font-family: 黑体">校外等级考试考生诚信承诺书</span></p>
		<p class="MsoNormal" style="text-indent: 24.0pt; line-height: 22.0pt">
		<span lang="EN-US" style="font-size:12.0pt">&nbsp;</span></p>
		<p class="MsoNormal" style="text-indent: 24.0pt; line-height: 22.0pt">
		<span style="font-size: 12.0pt; font-family: 宋体">
		本人自愿参加校外等级考试（包括全国大学外语四六级，浙江省高校计算机等级考试），现郑重承诺：</span><span lang="EN-US" style="font-size:12.0pt">
		</span></p>
		<p class="MsoNormal" style="line-height: 22.0pt">
		<span style="font-size: 12.0pt; font-family: 宋体">
		　　一、本人坚决遵守校外等级考试有关报名规定，不弄虚作假，不伪造、使用假证明、假证书。如有违反，自愿按规定接受处理。</span><span lang="EN-US" style="font-size:12.0pt">
		</span></p>
		<p class="MsoNormal" style="line-height: 22.0pt">
		<span style="font-size: 12.0pt; font-family: 宋体">
		　　二、本人报名时所提供的个人信息是真实、准确、完整的，如因个人信息错误、失真、缺失造成不良后果，责任由本人承担。</span></p>
		<p class="MsoNormal" style="line-height: 22.0pt">
		<span style="font-size: 12.0pt; font-family: 宋体">　　三、本人坚决服从考场工作人员和监考教师管理</span><span lang="EN-US" style="font-size:12.0pt">,</span><span style="font-size: 12.0pt; font-family: 宋体">自觉遵守考试纪律，考试诚实守信，不违规，不作弊。</span><span lang="EN-US" style="font-size:12.0pt">
		</span></p>
		<p class="MsoNormal" style="text-indent: 21.0pt; line-height: 22.0pt">
		<span style="font-size: 12.0pt; font-family: 宋体">
		四、本人已阅读并且透彻地理解了校外等级考试的有关规定和纪律要求，愿意在考试中自觉遵守这些规定，保证按规定的程序
		<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;和要求参加考试，如有违反，自愿按《国家教育考试违规处理办法》有关条款接受处理。</span></p>
<br><br><br><br>
<div align=center>
<input type=checkbox onclick="_click(this)" > 我已阅读承诺书
<input type=button value='报名' id='entry_button'  disabled>
</div>  
  </div>
  
    <div id='entry_div' style="display:<c:out value='${model.entry_div_display }'/>">
  <table width="80%"  border="0" align="center" cellpadding="0" cellspacing="0" class="mainTable">
    <tr>
      <td colspan="5" background="<c:url value="/images/table_title.jpg"/>"><strong>本学期报名记录</strong></td>
    </tr>
    <tr>
      <td width="12%"><b>学年</b></td>
      <td width="12%"><b>学期</b></td>
      <td width="31%"><b>考试科目</b></td>
      <td width="31%"><b>操作</b></td>
    </tr>
<c:forEach var="entryType" items="${model.entryTypes }">
    <tr>
      <td width="12%"><c:out value="${entryType.SCHOOL_YEAR }"/> </td>
      <td width="12%"><c:out value="${entryType.SCHOOL_SEMESTER }"/></td>
      <td width="31%"><c:out value="${entryType.EXAM_NAME }"/></td>
      <td width="31%"><c:if test="${model.entrySwitch=='Y' }">
        <input type='button' value='取消' onclick="f_cancelEntry('<c:out value="${entryType.ID }"/>')">
      </c:if> &nbsp; </td>
    </tr>
</c:forEach>    
</table>      
  <br>
  
  	<TABLE class=mainTable cellSpacing=0 cellPadding=0 width="80%" align=center border=0>
	<TBODY>
	<TR>
		<TD background="<c:url value="/images/table_title.jpg"/>" colSpan=3>
		<STRONG>校外考试网上报名</STRONG>
		</TD>
	</TR>
	<TR>
		<TD width="24%">学号：</TD>
		<TD width="60%"><INPUT class=input_text id=xh disabled value="<c:out value="${model.studentNo }"/>" name=xh></TD>
		<TD width="16%" rowSpan=4><img id="image1" height=192 width=144 onerror=_loadError()  src="<c:url value='/common/showImage.html?fname='/>/studentPhotos/<c:out value="${model.studentNo }"/>"  align="absmiddle" alt="照片"></TD>
	</TR>
	<TR>
		<TD width="24%">专业：</TD>
		<TD width="60%"><INPUT class=input_text id=zymc size=50 disabled value="<c:out value="${model.majorName }"/>" name=zymc><INPUT type=hidden value=03014></TD>
	</TR>
	<TR>
		<TD width="24%">现年级：</TD>
		<TD width="60%"><INPUT class=input_text id=nj disabled value="<c:out value="${model.grade }"/>" name=nj></TD>
	</TR>
	<TR>
		<TD width="24%">学年：</TD>
		<TD width="60%"><INPUT class=input_text id=xnd disabled size=10 value="<c:out value="${model.currentYear }"/>" name=xnd></TD>
	</TR>
	<TR>
		<TD width="24%">学期：</TD>
		<TD width="76%" colSpan=2><INPUT class=input_text id=xq disabled maxLength=1 size=4 value="<c:out value="${model.currentSemester }"/>" name=xq></TD>
	</TR>
	<TR>
		<TD width="24%">证件号码：</TD>
		<TD width="76%" colSpan=2><INPUT class=input_text disabled value="<c:out value="${model.identityNo }"/>" name=zjhm></TD>
	</TR>
	<TR>
		<TD width="24%">考试科目：</TD>
		<TD width="76%" colSpan=2>
		 <SELECT id="EXAM_TYPE" style="WIDTH: auto" name=kskm> 
		  <OPTION value="" >请选择</OPTION> 
	      <c:forEach var='examType' items='${model.permitTypes}'>
	        <OPTION value="<c:out value="${examType.EXAM_TYPE }"/>"><c:out value="${examType.EXAM_TYPE_NAME }"/></OPTION>
	      </c:forEach>
	     </SELECT>
	   </TD>
	</TR>
	<TR>
	<TR>
		<TD colSpan=3><INPUT class=INPUT_button id=add onclick="f_entry()" type=button value=报名 name=add>
		&nbsp;<FONT color=red>注意：请检查照片是否正确？身份证号码是否存在(正确)？如有疑问，请向辅导员提出，进行统一受理。
<br>报名费将在报名结束3天后进行一次性扣取（一卡通），如未按时扣到全额报名费，本次报名将视为无效，故请同学在确认报名后3天内在一卡通内存够相应金额（本次报名费用为30元/生）以保证正常报名考试。
 </FONT>
		</TD>
	</TR>
	</TBODY>
	</TABLE>
</div>
</c:when>

<c:when test="${model.entrySwitch=='N' }">
  <div align=center><font color=red>现在未开放校外考试报名</font></div>
</c:when>

<c:when test="${model.arrears=='Y'}">
  <div align=center><font color=red>对不起,暂不支持欠费学生报名!</font></div>
</c:when>
</c:choose>
<script>
var studentNo="<c:out value="${model.studentNo }"/>";

function _click(box){
  var btn=Ext.get('entry_button');
  btn.dom.disabled=!box.checked;
  btn.on("click",function(){
     Ext.get('note_div').setVisibilityMode(Ext.Element.DISPLAY);
     Ext.get('note_div').hide();
     Ext.get('entry_div').show();
  });
}

var havePhoto=true;
function _loadError(){
  havePhoto=false;
} 

window.onload=function(){
  <c:if test="${not empty model.error}">
    alert("<c:out value='${model.error}'/>");
  </c:if>
}

<c:if test="${model.entrySwitch=='Y' }">
function f_cancelEntry(id){
  var url="<c:url value="/educational/examEntry/entry.html"/>";
  var matrix=[["cmd","CANCEL_ENTRY"],["ID",id]];
  var form=createForm(url,matrix);
  form.submit();
}

function f_entry(){
  var url="<c:url value="/educational/examEntry/entry.html"/>";
  var matrix=[["cmd","STUDENT_ENTRY"]];
  var combo=Ext.get('EXAM_TYPE').dom;
  if(combo.value==""){
    alert("请选择报名类型");
    combo.focus();
    return;
  }
  if(!havePhoto){
    alert("没有照片，请与辅导员联系！");
    return;
  }
  matrix.push(["studentNo",studentNo]);
  matrix.push(["entryType",combo.value]);
  var form=createForm(url,matrix);
  form.submit();
}  
</c:if> 

</script>
</html>   
